package com.shop.shoporder.entity.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Order {
    private Integer orderId;

    private String orderNo;

    private Integer number;

    private String orderStatusname;

    private Double orderMoney;

    private String orderStatus;
    private String usernoName;
    private Integer usernoId;
    private Integer AID;
    private Integer payType;
    private Double coupon;

    private Double cashCoupon;

    private Double inter;

    private Double costInter;

    public Order(Integer number, String orderStatus) {
        this.number = number;
        this.orderStatus = orderStatus;
    }

    public Order() {
    }


    private Integer cancelUserid;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date cancelTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date aTime;

    private Integer refundAdminid;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date refundTime;
    private String refundError;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date applyTime;
    private String returnReason;

    private Double cash;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date pOrderTime;

    private String outTradeNo;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date payTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date deliveryTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date payFinishTime;

    public Integer getFinishAdminid() {
        return finishAdminid;
    }

    public void setFinishAdminid(Integer finishAdminid) {
        this.finishAdminid = finishAdminid;
    }

    public String getFinishRemark() {
        return finishRemark;
    }

    public void setFinishRemark(String finishRemark) {
        this.finishRemark = finishRemark;
    }

    private Integer finishAdminid;
    private String finishRemark;
    private Double freight;

    private Double avaCoupon;

    private Double avaCashcoupon;

    private String payErrorInfo;

    private Integer addressId;

    private Double realPay;

    private Integer isOrderFrom;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orderFromTime;

    private Integer isLaunchPay;

    private Integer checkCount;

    private Integer isInvoice;

    private String invoiceNo;

    private String logname;
    private String phone;
    private String addressAll;
    private String detailAddr;
    private String logisticalNo;
    private Integer turndownAdminid;

    public Integer getParticipateId() {
        return participateId;
    }

    public void setParticipateId(Integer participateId) {
        this.participateId = participateId;
    }

    private Integer participateId;
    private String turndownRemark;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date turndownTime;

    public Double getOpratorCost() {
        return opratorCost;
    }

    public String getOrderSubmitter() {
        return orderSubmitter;
    }

    public void setOrderSubmitter(String orderSubmitter) {
        this.orderSubmitter = orderSubmitter;
    }

    public Integer getOrderAdminid() {
        return orderAdminid;
    }

    public void setOrderAdminid(Integer orderAdminid) {
        this.orderAdminid = orderAdminid;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    private String orderSubmitter;

    private Integer orderAdminid;


    public String getOrderAdminidname() {
        return orderAdminidname;
    }

    public void setOrderAdminidname(String orderAdminidname) {
        this.orderAdminidname = orderAdminidname;
    }

    private String orderAdminidname;
    private Integer orderType;


    public String getOrderRemark() {
        return orderRemark;
    }

    public void setOrderRemark(String orderRemark) {
        this.orderRemark = orderRemark;
    }

    private String orderRemark;
    public void setOpratorCost(Double opratorCost) {
        this.opratorCost = opratorCost;
    }

    private Double opratorCost;

    public Integer getGroupbuyGoodsid() {
        return groupbuyGoodsid;
    }

    public void setGroupbuyGoodsid(Integer groupbuyGoodsid) {
        this.groupbuyGoodsid = groupbuyGoodsid;
    }

    private Integer groupbuyGoodsid;

    public Integer getSettlement() {
        return settlement;
    }

    public void setSettlement(Integer settlement) {
        this.settlement = settlement;
    }

    private Integer settlement;

    public Integer getGroupbuyId() {
        return groupbuyId;
    }

    public void setGroupbuyId(Integer groupbuyId) {
        this.groupbuyId = groupbuyId;
    }

    private Integer groupbuyId;
    public Integer getTurndownAdminid() {
        return turndownAdminid;
    }

    public void setTurndownAdminid(Integer turndownAdminid) {
        this.turndownAdminid = turndownAdminid;
    }

    public String getTurndownRemark() {
        return turndownRemark;
    }

    public void setTurndownRemark(String turndownRemark) {
        this.turndownRemark = turndownRemark;
    }

    public Date getTurndownTime() {
        return turndownTime;
    }

    public void setTurndownTime(Date turndownTime) {
        this.turndownTime = turndownTime;
    }
    public String getOrderStatusname() {return orderStatusname;}

    public void setOrderStatusname(String orderStatusname) {this.orderStatusname = orderStatusname;}

    public Integer getNumber() {return number;}

    public void setNumber(Integer number) {this.number = number;}

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }
    public Integer getRefundAdminid() {
        return refundAdminid;
    }

    public void setRefundAdminid(Integer refundAdminid) {
        this.refundAdminid = refundAdminid;
    }

    public Date getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(Date refundTime) {
        this.refundTime = refundTime;
    }

    public String getRefundError() {
        return refundError;
    }

    public void setRefundError(String refundError) {
        this.refundError = refundError;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    public Double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus == null ? null : orderStatus.trim();
    }

    public Integer getUsernoId() {
        return usernoId;
    }

    public void setUsernoId(Integer usernoId) {
        this.usernoId = usernoId;
    }

    public Double getCoupon() {
        return coupon;
    }

    public void setCoupon(Double coupon) {
        this.coupon = coupon;
    }

    public Double getCashCoupon() {
        return cashCoupon;
    }

    public void setCashCoupon(Double cashCoupon) {
        this.cashCoupon = cashCoupon;
    }

    public Double getInter() {
        return inter;
    }

    public void setInter(Double inter) {
        this.inter = inter;
    }

    public Double getCostInter() {
        return costInter;
    }

    public void setCostInter(Double costInter) {
        this.costInter = costInter;
    }

    public Double getCash() {
        return cash;
    }

    public void setCash(Double cash) {
        this.cash = cash;
    }

    public Date getpOrderTime() {
        return pOrderTime;
    }

    public void setpOrderTime(Date pOrderTime) {
        this.pOrderTime = pOrderTime;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo == null ? null : outTradeNo.trim();
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getPayFinishTime() {
        return payFinishTime;
    }

    public void setPayFinishTime(Date payFinishTime) {
        this.payFinishTime = payFinishTime;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public Double getAvaCoupon() {
        return avaCoupon;
    }

    public void setAvaCoupon(Double avaCoupon) {
        this.avaCoupon = avaCoupon;
    }

    public Double getAvaCashcoupon() {
        return avaCashcoupon;
    }

    public void setAvaCashcoupon(Double avaCashcoupon) {
        this.avaCashcoupon = avaCashcoupon;
    }

    public String getPayErrorInfo() {
        return payErrorInfo;
    }

    public void setPayErrorInfo(String payErrorInfo) {
        this.payErrorInfo = payErrorInfo == null ? null : payErrorInfo.trim();
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Double getRealPay() {
        return realPay;
    }

    public void setRealPay(Double realPay) {
        this.realPay = realPay;
    }

    public Integer getIsOrderFrom() {
        return isOrderFrom;
    }

    public void setIsOrderFrom(Integer isOrderFrom) {
        this.isOrderFrom = isOrderFrom;
    }

    public Date getOrderFromTime() {
        return orderFromTime;
    }

    public void setOrderFromTime(Date orderFromTime) {
        this.orderFromTime = orderFromTime;
    }

    public Integer getIsLaunchPay() {
        return isLaunchPay;
    }

    public void setIsLaunchPay(Integer isLaunchPay) {
        this.isLaunchPay = isLaunchPay;
    }

    public Integer getCheckCount() {
        return checkCount;
    }

    public void setCheckCount(Integer checkCount) {
        this.checkCount = checkCount;
    }

    public Integer getIsInvoice() {
        return isInvoice;
    }

    public void setIsInvoice(Integer isInvoice) {
        this.isInvoice = isInvoice;
    }

    public String getInvoiceNo() {
        return invoiceNo;
    }

    public void setInvoiceNo(String invoiceNo) {
        this.invoiceNo = invoiceNo == null ? null : invoiceNo.trim();
    }

    public String getLogname() {
        return logname;
    }

    public void setLogname(String logname) {
        this.logname = logname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddressAll() {
        return addressAll;
    }

    public void setAddressAll(String addressAll) {
        this.addressAll = addressAll;
    }

    public String getDetailAddr() {
        return detailAddr;
    }

    public void setDetailAddr(String detailAddr) {
        this.detailAddr = detailAddr;
    }

    public String getLogisticalNo() {
        return logisticalNo;
    }

    public void setLogisticalNo(String logisticalNo) {
        this.logisticalNo = logisticalNo;
    }

    public Integer getAID() {
        return AID;
    }

    public void setAID(Integer AID) {
        this.AID = AID;
    }

    public Date getaTime() {
        return aTime;
    }

    public void setaTime(Date aTime) {
        this.aTime = aTime;
    }

    public String getUsernoName() {
        return usernoName;
    }

    public void setUsernoName(String usernoName) {
        this.usernoName = usernoName;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }
    public Integer getCancelUserid() {
        return cancelUserid;
    }

    public void setCancelUserid(Integer cancelUserid) {
        this.cancelUserid = cancelUserid;
    }

    public Date getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(Date cancelTime) {
        this.cancelTime = cancelTime;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }
    public String getReturnReason() {
        return returnReason;
    }

    public void setReturnReason(String returnReason) {
        this.returnReason = returnReason;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderNo='" + orderNo + '\'' +
                ", number=" + number +
                ", orderStatusname='" + orderStatusname + '\'' +
                ", orderMoney=" + orderMoney +
                ", orderStatus='" + orderStatus + '\'' +
                ", usernoName='" + usernoName + '\'' +
                ", usernoId=" + usernoId +
                ", AID=" + AID +
                ", payType=" + payType +
                ", coupon=" + coupon +
                ", cashCoupon=" + cashCoupon +
                ", inter=" + inter +
                ", costInter=" + costInter +
                ", cancelUserid=" + cancelUserid +
                ", cancelTime=" + cancelTime +
                ", aTime=" + aTime +
                ", refundAdminid=" + refundAdminid +
                ", refundTime=" + refundTime +
                ", refundError='" + refundError + '\'' +
                ", applyTime=" + applyTime +
                ", returnReason='" + returnReason + '\'' +
                ", cash=" + cash +
                ", pOrderTime=" + pOrderTime +
                ", outTradeNo='" + outTradeNo + '\'' +
                ", payTime=" + payTime +
                ", deliveryTime=" + deliveryTime +
                ", payFinishTime=" + payFinishTime +
                ", freight=" + freight +
                ", avaCoupon=" + avaCoupon +
                ", avaCashcoupon=" + avaCashcoupon +
                ", payErrorInfo='" + payErrorInfo + '\'' +
                ", addressId=" + addressId +
                ", realPay=" + realPay +
                ", isOrderFrom=" + isOrderFrom +
                ", orderFromTime=" + orderFromTime +
                ", isLaunchPay=" + isLaunchPay +
                ", checkCount=" + checkCount +
                ", isInvoice=" + isInvoice +
                ", invoiceNo='" + invoiceNo + '\'' +
                ", logname='" + logname + '\'' +
                ", phone='" + phone + '\'' +
                ", addressAll='" + addressAll + '\'' +
                ", detailAddr='" + detailAddr + '\'' +
                ", logisticalNo='" + logisticalNo + '\'' +
                '}';
    }
}